import { Component } from '@angular/core';
import { AuthService } from '@auth0/auth0-angular';

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css'],
    standalone: false
})
export class AppComponent {
  constructor(
    public auth: AuthService
  ){}

  login(){
    this.auth.loginWithRedirect({
      appState: {
        target: '/heros',
      },
    });
  }
}
